package com.cool.reggie.core.exception;

/**
 * @Author ifredomvip@gmail.com
 * @Date 2022/7/6 10:49
 * @Version 1.0.0
 * @Description
 **/
public class CustomException extends RuntimeException{
    private String message;

    private Integer code;

    private static final long serialVersionUID = 1L;

    public CustomException(String message) {
        super(message);
        this.message = message;
    }

    public CustomException(String message, Integer code) {
        this.message = message;
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
